﻿#region Using Statements
using System.Collections.Generic;
using DirectZZT.Shared.Scripting;
#endregion

namespace DirectZZT.Shared.World
{
    /// <summary>
    /// World data.
    /// </summary>
    public class WorldData
    {
        /// <summary>
        /// Amount of time in seconds that has passed on the current board. Only applicable if the board the player is on has a time limit. 
        /// </summary>
        public int TimePassed { get; set; }
        /// <summary>
        /// The list of flags that are set.
        /// </summary>
        public Dictionary<string, ScriptFlag> Flags { get; set; }
        
        /// <summary>
        /// Gets/sets the player data.
        /// </summary>
        public PlayerWorldData Player { get; set; }

        /// <summary>
        /// Initializes a new instance of the WorldData class.
        /// </summary>
        public WorldData()
        {
            Flags = new Dictionary<string, ScriptFlag>(10);
            Player = new PlayerWorldData();
        }
    }
}
